package fourzerofour.liangjunwei.day01;

import java.util.Scanner;

public class Question10 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入密码：");
        int n = scanner.nextInt();
        int key= 123;
        while(n != 123) {
            System.out.println("密码错误");
            System.out.println("请重新输入");
            n = scanner.nextInt();
        }
        System.out.println("密码正确");
    }
}
